<!DOCTYPE HTML PUBLIC "-//W3C//DTDHTML 4.0 Transitional//EN"> 
<html>
<head>
	<title>后台首页</title>
	<include file="Public:jsandcss" />
	<script type="text/javascript" src="/Public/js/uploadify/jquery.uploadify.min.js"></script>
	<link rel="Stylesheet" type="text/css" href="/Public/js/uploadify/uploadify.css" />
	
	<script type="text/javascript">
		$(function() {
			$('#fileUpload').uploadify({
				'swf'      : '/Public/js/uploadify/uploadify.swf',
				'uploader' : '__URL__/fileUpload',
				'buttonText' : '选择文件',
				'onUploadSuccess' : function(file, data, response) {
		            if(response){
		            	alert(file.name + ' 上传成功');
		            }else{
		            	alert(file.name + ' 上传失败');
		            }
		        }
			});
		});
	</script>
	<style type="text/css">
		html,body{width:100%;height:100%;margin: 0 0 0 0;overflow: hidden;}
	</style>
</head>

	<body>
		<include file="Public:header" />
		<h2>站点信息，直接修改，然后保存</h2>
		<form action="__APP__/ManageCenter/saveStieInfo" method="post">
		<table width="100%" border="1" cellspacing="0" cellpadding="0">
			<tr>
				<td width="20%">站点域名：</td>
				<td width="80%"><input type="text" name="domain" style="width:300px;height: 21px" value="{$siteInfo.domain}"/>(完整填写当前服务器访问地址，如http://www.domain.com)</td>
			</tr>
			<tr>
				<td width="20%">首页标题：</td>
				<td width="80%"><input type="text" name="title" size="100" style="width:300px;height: 21px" value="{$siteInfo.title}"/></td>
			</tr>
			<tr>
				<td>关键字：</td>
				<td><input type="text" name="keyword" size="50" style="width:300px;height: 21px" value="{$siteInfo.keyword}"/></td>
			</tr>
			<tr>
				<td>说明：</td>
				<td><input type="text" name="description" size="300" style="width:300px;height: 21px" value="{$siteInfo.description}"/></td>
			</tr>
			<tr>
				<td>关于我们图片地址：<a href="{$siteInfo.aboutuserpath}" target="_blank">预览</a></td>
				<td>
					<input type="text" name="aboutuserpath" style="width:300px" value="{$siteInfo.aboutuserpath}"/>
					填写完整图片地址或者上传图片：<input type="text" id="fileUpload"/>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="保存" style="width:100px;height:30px"/>
					<input type="hidden" value="{$siteInfo.id}" name="id"/>
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>
